package cn.project.engineering.utils

import android.content.Context
import android.widget.Toast
import androidx.annotation.StringRes

/**
 *
 * @author  lifuhai
 * @date 2021/2/19 10:01
 */

fun Context.toast(@StringRes resId: Int) {
    Toast.makeText(this, getString(resId), Toast.LENGTH_SHORT).show()
}

fun Context.toast(message: String) {
    Toast.makeText(this, message, Toast.LENGTH_SHORT).show()
}